import request from '@/utils/request'

export function siteInfo() {
  return request({
    url: '/vehicleservice/secondary/site/info',
    method: 'get',
  })
}
// 查询汽车检测-二级维护站列表
export function listSecondary(query) {
  return request({
    url: '/vehicleservice/secondary/list',
    method: 'get',
    params: query
  })
}

// 查询汽车检测-二级维护站详细
export function getSecondary(id) {
  return request({
    url: '/vehicleservice/secondary/' + id,
    method: 'get'
  })
}

// 新增汽车检测-二级维护站
export function addSecondary(data) {
  return request({
    url: '/vehicleservice/secondary',
    method: 'post',
    data: data
  })
}

// 修改汽车检测-二级维护站
export function updateSecondary(data) {
  return request({
    url: '/vehicleservice/secondary',
    method: 'put',
    data: data
  })
}

// 删除汽车检测-二级维护站
export function delSecondary(id) {
  return request({
    url: '/vehicleservice/secondary/' + id,
    method: 'delete'
  })
}

// 控制显示汽车检测-二级维护站
export function controlShow() {
  return request({
    url: '/vehicleservice/secondary/controlShow',
    method: 'get'
  })
}

// 汽车检测-更新状态
export function updateStatus(id) {
  return request({
    url: '/vehicleservice/secondary/updateStatus/' + id,
    method: 'put'
  })
}

export function wxUnitList() {
  return request({
    url: '/vehicleservice/secondary/wxUnit/list',
    method: 'get'
  })
}
export function siteNameList(query) {
  return request({
    url: '/vehicleservice/secondary/sitename/list',
    method: 'get',
    params: query
  })
}
